import {useHistory} from "react-router-dom/cjs/react-router-dom";
import {useSelector} from "react-redux";
function List () {
    const history = useHistory()
    const result = useSelector(state => state)
    return (
        <div>
            <p>这是页面二</p>
            <p>{result.count}</p>
            <p>
                <button onClick={ () => {
                    history.push('/')
                } }>
                    跳转到页面一
                </button>
            </p>
        </div>
    )
}
// connect()(List)
export default List